package com.atguigu.springcloud.controller;

import com.atguigu.springcloud.service.MessageSend;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class RabbitmqProviderController {
    @Resource
    public MessageSend messageSend;
    @GetMapping("/rabbitmq/send")
    public void sendMessage(){
        messageSend.send();
    }
}
